﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Models
{
    public class SetUpModel: ICommandNotify.NotifyBase
    {
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string ?DatabaseName { get; set; }
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ? ConnectingString { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        private bool IsAvailable_=false;

        public bool IsAvailable
        {
            get { return IsAvailable_; }
            set { IsAvailable_= value;
                SetProperty(ref IsAvailable_, IsAvailable);
            }
        }

    }

    public class SetUpTableModel : ICommandNotify.NotifyBase
    {
        /// <summary>
        /// 模块名称
        /// </summary>
        public string? ModuleName { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public string? TableName { get; set; }
        /// <summary>
        /// 查询名称
        /// </summary>
        public string? TableValue { get; set; }
        /// <summary>
        /// 是否可编辑
        /// </summary>
        private bool IsAvailable_ = false;

        public bool IsAvailable
        {
            get { return IsAvailable_; }
            set
            {
                IsAvailable_ = value;
                SetProperty(ref IsAvailable_, IsAvailable);
            }
        }

    }
}
